<?php
namespace app\validate;

use think\Validate;

class Forgot extends Validate
{
    protected $rule = [
        'mobile' => 'require|max:20',
        'newPass' => 'require|length:6,40',
        'code'        => 'require|length:6',
    ];

    protected $message = [
        'mobile.require' => '必须填写账号',
        'newPass.require' => '必须填写新密码',
        'newPass.max'     => '密码过长',
        'newPass.length'  => '密码长度错误',
        'code.require'   => '验证码不能为空',
        'code.length'    => '短信验证码为6位',
    ];


}
